/**
 * Copyright (C) 2018-2020
 * All rights reserved, Designed By www.gzchengguo.cn

 */
package link.chengguo.orangemall.modules.product.service.dto;

import cn.hutool.core.util.StrUtil;
import link.chengguo.orangemall.annotation.Query;
import lombok.Data;

/**
* @author chengguo
* @date 2020-05-12
*/
@Data
public class OrangeStoreProductQueryCriteria {

    // 模糊
    @Query(type = Query.Type.INNER_LIKE)
    private String storeName;

    // 精确
    @Query
    private Integer isDel;

    @Query(type = Query.Type.INNER_LIKE)
    private String cateId;

    @Query
    private Integer isShow;

    public void setCateId(String cateId) {
        if(StrUtil.isNotBlank(cateId)){
            this.cateId = ","+cateId+",";
        }
    }
}
